package com.hjf.booking.security.authentication;

import sun.misc.BASE64Encoder;

/**
 * @author hjf
 * @date 2021-03-17 9:38
 */
public class SelfPasswordEncod {

    public static String encode(String password){
        BASE64Encoder base64Encoder=new BASE64Encoder();
        String encodePwd = base64Encoder.encode(password.getBytes());
        return encodePwd;
    }

}
